//
//  ViewController.m
//  DDLogDemo
//
//  Created by Gpf on 2019/9/3.
//  Copyright © 2019 Gpf. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    NSDateFormatter *formatter =[[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *crashTime = [formatter stringFromDate:[NSDate date]];
    DDLogWarn(@"记录打印信息------%@", crashTime);
}

- (IBAction)crashButton:(id)sender {
    NSArray * arr = @[@"1", @"2"];
    NSLog(@"%@", arr[2]);
//    [NSException raise:@"Crash Action" format:@""];
}
@end
